//
//  GYOrder.h
//  GoodLuck
//
//  Created by 郭为勇 on 2018/3/21.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GYOrderStore.h"
#import "GYOrderGoods.h"
@interface GYOrder : NSObject

/** 1086--订单ID */
@property (nonatomic, strong) NSString *order_id;

/** 1000000000126201--订单号 */
@property (nonatomic, strong) NSString *order_sn;

/** 290573615182283010--支付单号 */
@property (nonatomic, strong) NSString *pay_sn;

/** 店铺ID */
@property (nonatomic, strong) NSString *store_id;

/** 店铺名称 */
@property (nonatomic, strong) NSString *store_name;

/** 用户id */
@property (nonatomic, strong) NSString *buyer_id;

/** 用户名 */
@property (nonatomic, strong) NSString *buyer_name;

/** 1520271182-下单时间 */
@property (nonatomic, strong) NSString *add_time;

/** online--支付类型 */
@property (nonatomic, strong) NSString *payment_code;

/** 支付时间 */
@property (nonatomic, strong) NSString *payment_time;

/** 订单完成时间 */
@property (nonatomic, strong) NSString *finnshed_time;

/** 商品总价格 */
@property (nonatomic, strong) NSString *goods_amount;

/** 订单总价格 */
@property (nonatomic, strong) NSString *order_amount;

/** 充值卡支付金额 */
@property (nonatomic, strong) NSString *rcb_amount;

/** 预存支付金额 */
@property (nonatomic, strong) NSString *pd_amount;

/** 0.00---运费 */
@property (nonatomic, strong) NSString *shipping_fee;

/** 0---评价状态 */
@property (nonatomic, strong) NSString *evaluation_state;

/** 10---订单状态（0(已取消)10(默认):未付款;20:已付款;30:已发货;40:已收货; */
@property (nonatomic, strong) NSString *order_state;

/** 0---'退款状态:0是无退款,1是部分退款,2是全部退款 */
@property (nonatomic, strong) NSString *refund_state;

/** 0.00--退款金额 */
@property (nonatomic, strong) NSString *refund_amount;

/** 物流单号 */
@property (nonatomic, strong) NSString *shipping_code;

/** 0.00---积分抵扣金额 */
@property (nonatomic, strong) NSString *points_orderprice;

/** 微信支付交易号 */
@property (nonatomic, strong) NSString *transaction_id;

/** 支付宝支付交易号 */
@property (nonatomic, strong) NSString *alipay_payno;

/** 待付款 */
@property (nonatomic, strong) NSString *state_desc;

/** 在线付款 */
@property (nonatomic, strong) NSString *payment_name;

/** 店铺模型 */
@property (nonatomic, strong) GYOrderStore *extend_store;

/** 商品数组 */
@property (nonatomic, strong) NSArray *extend_order_goods;

/** 代表是否正在退货中 */
@property (nonatomic, getter=isIf_lock) BOOL if_lock;

/** 订单的详情的一些数据 */
//@property (nonatomic, strong) NSDictionary *extend_order_common;


+ (NSArray *)loadOrderModel:(NSArray *)source;

@end
